<template>
  <div>
    <detailMessage
      v-if="showDeatil == '1'"
      @showMap="getShowmap"
    ></detailMessage>
    <detailMap v-if="showDeatil == '2'" @showMap="getShowmap"></detailMap>
  </div>
</template>
<script lang="ts" setup>
import {} from 'element-plus';
import { reactive, ref } from 'vue';
import { router } from '#/router';
import detailMessage from './detailMessage.vue';
import detailMap from './detailMap.vue';
const showDeatil = ref('1');
const getShowmap = (item) => {
  console.log('hhhh', item);
  showDeatil.value = item;
};
</script>
<style scoped lang="scss"></style>
